﻿<extend name='./Apps/Dzdjwyadmin/Common/layout.html' />

<block name='mycss'>
    <style type="text/css">
		#order th{text-align:center;line-height:30px;}
		#order td{text-align:center;line-height:30px;}
    .tdneed{width:22%;}
    .mysearch{width:300px;float:right;}
    .blockimage{width:30px;height:22px}
    .noneimage{position:absolute;width:210px;display:none;z-index:1;margin-top:-10;}
    .myneed{position:absolute;display:none;z-index:1;margin-top:-8px;width:300px;}
    .myaddress{position:absolute;display:none;z-index:1;}
    

    .page > th {text-align:center !important; vertical-align:middle !important;}
    .page > td {text-align:center; vertical-align:middle;}

    .page > .table { width:60% !important;}

    /* .prev {font-size:20px;}
    .next {font-size:20px;}
    .num {font-size:20px;}
    .current {font-size:20px;} */


    .page > .taborder{height:300px;}

    .page a, .page a:hover, .page .current {
      font-size:18px;
        display: inline-block;
        height: 25px;
        line-height: 25px;
        margin-right: 2px;
        padding: 0 10px;
        vertical-align: middle;
    }
    .page a {
        background-color: #f6ffff;
        border: 1px solid #d7dbdc;
        color: #404548;
    }
    .page a:hover, .page .current {
        background-color: #429EE2;
        color: #fff;
        text-decoration: none;
        vertical-align: middle;
    }
    .page .next, .page .prev {
        font-family: "宋体";
    }
    

    </style>
</block>
<block name='bodyname'>
  <!-- <div class="btn-group">
      <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">选择显示几条数据 <span class="caret"></span></button>
      <ul class="dropdown-menu">
        <li><a href="JavaScript:;" class="myselect" data-num='15'>15 条</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="JavaScript:;" class="myselect" data-num='30'>30 条</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="JavaScript:;" class="myselect" data-num='45'>45 条</a></li>
        <li role="separator" class="divider"></li>
        <li><a href="JavaScript:;" class="myselect" data-num='60'>60 条</a></li>
  
      </ul>
    </div> -->
  
  <form action="__URL__/search" method='get'>
  <div class="input-group mysearch custom-search-form">
      <input class="form-control" name='content' placeholder="输入申请人名字.." type="text">
      <span class="input-group-btn">
      <button class="btn btn-default btn-sub">
          <i class="fa fa-search"></i>
      </button>
  </span>
  </div>
  </form>
                            
                        

	<!-- <div class="bs-example" data-example-id="hoverable-table"> -->
    <table id='order' class="table table-hover">
      <thead>
        <tr>
          <!-- <th style="min-width:6%">订单ID</th>
          <th style="min-width:12%">申请人/单位名称</th>
          <th style="min-width:10%">电话号码</th>
          <th style="min-width:7%">定制数量</th>
          <th style="min-width:15%">详细地址</th>
          <th style="min-width:9%">参考图片</th>
          <th style="min-width:30%">定制需求</th> -->
          <th>订单ID</th>
          <th>申请人/单位名称</th>
          <th>电话号码</th>
          <th>定制数量</th>
          <th>创建时间</th>
          <th>地址</th>
          <th>参考图片</th>
          <th>定制需求</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
  <?php 
    $str =  '徐会浪费哈塑料口吉林省的减肥的吉林省法发顺丰苟富贵';
  	foreach ($data as $k => $v) {
  		
  ?>	
        <tr class='mytr'>
          <th scope="row">{$v['id']}</th>
          <td>{$v['username']}</td>
          <td>{$v.phone}</td>
          <td>{$v.number}</td>
          <td>{$v.ctime}</td>
          <td class='tdaddress'><span><?php echo substr($v['address'],0,30).'...' ?></span>
              <div class="myaddress">
                  <div class="well">
                      <p>{$v.address}</p>
                  </div>
              </div>
          </td>
          <td class='tdimg'><img class='blockimage' src="__PUBLIC__/{$v['photo'][0]}" alt="未上传">...
              <img class='noneimage' src="__PUBLIC__/{$v['photo'][0]}" alt="空">
              <!-- <img class='noneimage' src="__PUBLIC__/Uploads\2017-03-23/1.jpg" alt="空"> -->
          </td>
          <td class='tdneed'><span><?php echo substr($v['need'],0,40) ?></span>
              <div class="myneed">
                <div class="panel panel-green">
                    <div class="panel-heading">
                        定制需求
                    </div>
                    <div class="panel-body">
                        <p>{$v.need}</p>
                    </div>
                    <div class="panel-footer">
                        大集舞衣定制平台
                    </div>
                </div>
                <!-- /.col-lg-4 -->
              </div>
          </td>
          <td><!-- str_replace([3,4],['已拒绝','拒绝受理'],3); -->
            <!-- <?php echo str_replace([0,1,2],['待处理','处理中','完成'],$v['status']); ?> -->
            <button type="button" class="btn btn-<?php echo str_replace([0,1,2],['warning','info','success'],$v['status']); ?> btn-circle"><?php echo str_replace([0,1,2],['待处理','处理中','完成'],$v['status']); ?></button>
            <!-- <button type="button" class="btn btn-warning btn-circle">待受理</button> -->
            <!-- <button type="button" class="btn btn-info btn-circle">处理中</button> -->
            <!-- <button type="button" class="btn btn-success btn-circle">完成</button> -->
          </td>
          <td><a href="__MODULE__/index/seeOrder/orderId/{$v['id']}"><button type="button" class="btn btn-primary btn-circle">查看</button></a></td>  
        </tr>

   <?php
    }
   ?>
        <!-- <tr>
          <th scope="row">2</th>
          <td>Jacob</td>
          <td>Thornton</td>
          <td>@fat</td>
          <td>@mdo</td>
          <td>@mdo</td>
          <td>@fat</td>
          <td>@fat</td>
        </tr> -->
        
      </tbody>
    </table>
    <center>
    <div class='page'>
      {$page}
    </div>
    </center>
    
    
    <!-- </div> -->


</block>

<block name='myjs'>
<script type="text/javascript" src='/apps/dzdjwyadmin/common/js/order.js'></script>

</block>
